package com.xbao.service;

import com.xbao.model.Role;
import com.xbao.model.RoleRuleRel;
import com.xbao.model.Rule;
import com.xbao.model.UserRole;
import com.xbao.model.req.EmpReq;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * Created by qingshengzheng on 18/8/29.
 */
public interface RoleService {
    public void addRule(Rule rule);
    public void deleteRule(Long id);
    public Rule detailRUle(Long id);
    public List<Rule> queryRulesOfUser(Long uid);
    public List<Role> queryRolesOfUser(Long uid);
    public void  addUserRoles(List<UserRole> userRoles);
    public void removeUserRoles(Long uid);

    public List<Rule> getMyRoles(EmpReq empReq);

    public void addRoleRule(RoleRuleRel rel);

    public List<Rule> queryRuleOfRole(Long roleid);

    public List<Rule> getMyRoles(Long eid);
}
